import logging as log
import time, datetime, traceback, sys
from xtquant import xtdata
import traceback

from xtquant.xttrader import XtQuantTrader
from xtquant.xttype import StockAccount

path = r'D:\安信证券QMT模拟_交易终端\userdata_mini'
account_id = '10100001021'
session_id = int(time.time() * 1000)
xt_trader = XtQuantTrader(path, session_id)
account_putong = StockAccount(account_id, 'STOCK')
xt_trader.start()
connect_result = xt_trader.connect()
subscribe_result = xt_trader.subscribe(account_putong)

